<script>on mouseUpvisual effect dissolvego cd "Credits"end mouseUp</script>
</part>
<content>
<layer>card</layer>
<id>1</id>
<text><span class="style1">enameRes XFCN 1.1</span><span class="style2">RenameRes is a function to allow you to rename any type of resource in any file from within Hypercard. </span><span class="style4">Syntax: </span><span class="style2">RenameRes(filename, resId, resType, resName, newName)</span><span class="style3">Syntax Breakdown:</span><span class="style2">filename - This is the full path to the file that contains the resource you want to change. Example: "My Hard Disk:Pictures:Bozo"resId - This is the id number of the resource to be changed.resType - This is the type of resource it is, this is always a four character name. Example: PICT, MENU, WIND, DLOG, etc.resName - This is the original name of the resource if it has one. This parameter is optional.newName - This is the new name you want to give it.</span><span class="style3">Sample Script:</span><span class="style2">on mouseUp get RenameRes("My Hard Disk:MyResources","2000","PICT",,"NewName") put it into msgend mouseUpThis script will rename the PICT resource, id 2000, in the file MyResources on the volume My Hard Disk to NewName. It will then return any errors to the message box, if there are any.</span><span class="style3">Error Codes:</span><span class="style2">0 = No Error.-192 = Resource Not Found.-193 = Resource file not found.</span><span class="style3">Version History:</span><span class="style2">7/15/92 - Version 1.02/26/93 - Version 1.1 - Bug fix update</span><span class="style3">WARNING</span><span class="style4">Renaming resources located in System files or files used by the System is not recommended! Software Perspectives will not take responsibility for any damages caused from the misuse of this software. This covers the author of the program as well.</span></text>